of

public static ZoomLevel of(double value)

Returns a ZoomLevel instance for the given double value.

Return

a ZoomLevel instance for the given double value

Parameters

value

the level as a double value. For a 100% zoom level, the value should be 1.0; for 25% it should be 0.25, and so on. See the P_ zoom level constants for reference.

See also

Throws

when value is negative